package Employee;

import Department.Department;

public class ParttimeEmployee implements Employee {
    private String name;
    private double HourWage;
    private int workTime;
    @Override
    public void accept(Department handler) {
        handler.visit(this);
    }
    public ParttimeEmployee(String name, double hourWage, int workTime) {
        this.name = name;
        HourWage = hourWage;
        this.workTime = workTime;
    }
    public String getName() {
        return name;
    }
    public double getHourWage() {
        return HourWage;
    }
    public int getWorkTime() {
        return workTime;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setHourWage(double hourWage) {
        HourWage = hourWage;
    }
    public void setWorkTime(int workTime) {
        this.workTime = workTime;
    }
}
